import 'package:flutterlib/common/net/retrofit/user_api.dart';
import 'package:flutterlib/model/user/user_entity.dart';
import 'package:mobx/mobx.dart';
part 'user_store.g.dart';

class UserStore = _UserStore with _$UserStore;

abstract class _UserStore with Store {

  @observable
  ObservableFuture<UserEntity> UserEntityFuture;

  @action
  Future fetchUserEntity(int id) => UserEntityFuture =
      ObservableFuture(UserApi.builder().getUserInfo(id));

}
